package cmo.neutech.day10.HomeWork.d6;

public class Pc extends Student{
    double opCapacity;
    double englishWriting;
    double midterm;
    double finalExam;
    public Pc(String sno,String name,String sex,int age,double opCapacity,double englishWriting,double midterm,double finalExam)
            {
                super(sno,name,sex,age);
                this.opCapacity=opCapacity;
                this.englishWriting=englishWriting;
                this.midterm=midterm;
                this.finalExam=finalExam;
            }
    public double getOverallScore()
    {
        return opCapacity*0.4+englishWriting*0.2+midterm*0.2+finalExam*0.2;
    }
}
